﻿@{
	string FlowID = Request.QueryString["flowid"];
	string StepID = Request.QueryString["stepid"];
	string GroupID = Request.QueryString["groupid"];
	string TaskID = Request.QueryString["taskid"];
	string InstanceID = Request.QueryString["instanceid"];
	string DisplayModel = Request.QueryString["display"] ?? "0";
	string DBConnID = "06075250-30dc-4d32-bf97-e922cb30fac8";
	string DBTable = "AmAssets";
	string DBTablePK = "ID";
	string DBTableTitle = "Remark";
	if(InstanceID.IsNullOrEmpty()){InstanceID = Request.QueryString["instanceid1"];}
	YJ.Platform.Dictionary BDictionary = new YJ.Platform.Dictionary();
	YJ.Platform.WorkFlow BWorkFlow = new YJ.Platform.WorkFlow();
	YJ.Platform.WorkFlowTask BWorkFlowTask = new YJ.Platform.WorkFlowTask();
	string fieldStatus = BWorkFlow.GetFieldStatus(FlowID, StepID);
	LitJson.JsonData initData = BWorkFlow.GetFormData(DBConnID, DBTable, DBTablePK, InstanceID, fieldStatus, "{\"amassets.purchasedate\":\"yyyy-MM-dd\"}");
	string TaskTitle = BWorkFlow.GetFromFieldData(initData, DBTable, DBTableTitle);
}
<link href="~/Scripts/FlowRun/Forms/flowform.css" rel="stylesheet" type="text/css" />
<script src="~/Scripts/FlowRun/Forms/common.js" type="text/javascript" ></script>
<input type="hidden" id="Form_ValidateAlertType" name="Form_ValidateAlertType" value="1" />
<input type="hidden" id="AmAssets.Remark" name="AmAssets.Remark" value="@(TaskTitle.IsNullOrEmpty() ? BWorkFlow.GetAutoTaskTitle(FlowID, StepID, Request.QueryString["groupid"]) : TaskTitle)" />
<input type="hidden" id="Form_TitleField" name="Form_TitleField" value="AmAssets.Remark" />
<input type="hidden" id="Form_DBConnID" name="Form_DBConnID" value="06075250-30dc-4d32-bf97-e922cb30fac8" />
<input type="hidden" id="Form_DBTable" name="Form_DBTable" value="AmAssets" />
<input type="hidden" id="Form_DBTablePk" name="Form_DBTablePk" value="ID" />
<input type="hidden" id="Form_DBTableTitle" name="Form_DBTableTitle" value="Remark" />
<input type="hidden" id="Form_AutoSaveData" name="Form_AutoSaveData" value="1" />
<textarea id="Form_DBTableTitleExpression" name="Form_DBTableTitleExpression" style="display:none;width:0;height:0;">设备仪器-{Name}-{Barcode}</textarea>
<script type="text/javascript">
	var initData = @Html.Raw(BWorkFlow.GetFormDataJsonString(initData));
	var fieldStatus = "1"=="@Request.QueryString["isreadonly"]" ? {} : @Html.Raw(fieldStatus);
	var displayModel = '@DisplayModel';
	$(window).load(function (){
		formrun.initData(initData, "AmAssets", fieldStatus, displayModel);
	});
</script>
<p><input type="hidden" id="AmAssets.CreateUId" name="AmAssets.CreateUId" isflow="1" type1="flow_hidden" value="u_@YJ.Platform.Users.CurrentUserID.ToString()"/><input type="hidden" id="AmAssets.Module" name="AmAssets.Module" isflow="1" type1="flow_hidden" value="1"/></p><p><br/></p><link href="~/Content/Theme/tablenew.css" rel="stylesheet"/><table class="flowformtable tableF table table-bordered" data-sort="sortDisabled" cellspacing="0" cellpadding="0" align="center"><tbody><tr class="firstRow"><th rowspan="1" colspan="2" valign="middle" align="center"><span class="title">仪器设备入库单</span></th></tr><tr><th class="titleT" rowspan="1" colspan="2" valign="middle" align="left"><p class="titleO">物品信息</p></th></tr><tr class="topTr"><td class="top" rowspan="1" colspan="1" valign="middle" align="left"><p class="txt">设备名称</p><input type="text" id="AmAssets.Name" type1="flow_text" name="AmAssets.Name" value="" valuetype="0" isflow="1" class="mytext" title="" align="left"/></td><td class="top" rowspan="1" colspan="1" valign="middle" align="left"><p class="txt">统一编号</p><input type="text" type1="flow_serialnumber" id="AmAssets.Barcode" maxfiled="" name="AmAssets.Barcode" value="" placeholder="入库编号" sqlwhere="year(CreateDate)%3Dyear(getdate())" length="6" isflow="1" class="mytext" title="" readonly="" style="background-color: rgb(232, 232, 232);"/><input type="hidden" value="AmAssets.Barcode" name="HasSerialNumber"/><input type="hidden" value="{'formatstring':'Apparatus$date&yyyy&$','sqlwhere':'year(CreateDate)%3Dyear(getdate())','length':'6','maxfiled':''}" name="HasSerialNumberConfig_AmAssets.Barcode"/></td></tr><tr><td rowspan="1" colspan="1" valign="middle" align="left"><p class="txt">仪器类别</p><select class="mycombox" id="AmAssets.TypeId" name="AmAssets.TypeId" datasource="0" listmode="0" isflow="1" type1="flow_combox">@Html.Raw(BDictionary.GetOptionsByID("e46d451b-e05d-4ac7-baa6-aa6663904646".ToGuid(), YJ.Platform.Dictionary.OptionValueField.ID, ""))</select></td><td rowspan="1" colspan="1" valign="middle" align="left"><p class="txt">购置日期</p><input type="text" id="AmAssets.PurchaseDate" type1="flow_text" name="AmAssets.PurchaseDate" value="@(YJ.Utility.DateTimeNew.ShortDate)" valuetype="0" format="yyyy-MM-dd" isflow="1" class="mytext" title="" align="left"/></td></tr><tr><td rowspan="1" colspan="1" valign="middle" align="left"><p class="txt">固定资产</p><select class="myselect" id="AmAssets.IsFixedAsset" name="AmAssets.IsFixedAsset" isflow="1" type1="flow_select">@Html.Raw(BDictionary.GetOptionsByID("b0f05080-8606-4828-8fee-f60b4dfdd2e2".ToGuid(), YJ.Platform.Dictionary.OptionValueField.Value, "1040ecb3-9007-4a06-9898-02de12a46311", true))</select></td><td rowspan="1" colspan="1" valign="middle" align="left"><p class="txt">固定资产编号</p><input type="text" id="AmAssets.FixedAssetCode" type1="flow_text" name="AmAssets.FixedAssetCode" value="" valuetype="0" isflow="1" class="mytext" title="" align="left"/></td></tr><tr><td rowspan="1" colspan="1" valign="middle" align="left"><p class="txt">规格、型号</p><input type="text" id="AmAssets.Specs" type1="flow_text" name="AmAssets.Specs" value="" valuetype="0" isflow="1" class="mytext" title="" align="left"/></td><td rowspan="1" colspan="1" valign="middle" align="left"><p class="txt">生产厂商</p><input type="text" id="AmAssets.Brand" type1="flow_text" name="AmAssets.Brand" value="" valuetype="0" isflow="1" class="mytext" title="" align="left"/></td></tr><tr><td rowspan="1" colspan="1" valign="middle" align="left"><p class="txt">计量类型</p><input type="text" id="AmAssets.MeasureUnit" type1="flow_text" name="AmAssets.MeasureUnit" value="" valuetype="0" isflow="1" class="mytext" title="" align="left"/></td><td rowspan="1" colspan="1" valign="middle" align="left"><p class="txt">设备价值</p><input type="text" id="AmAssets.Money" type1="flow_text" name="AmAssets.Money" value="" valuetype="4" isflow="1" class="mytext" title="" align="left"/></td></tr><tr class="bottomTr"><td class="bottom" rowspan="1" colspan="1" valign="middle" align="left"><p class="txt">计量检测单位</p><textarea isflow="1" type1="flow_textarea" id="AmAssets.AppraisalUnit" name="AmAssets.AppraisalUnit" class="mytext" style="width:80%; height:40px;"></textarea></td><td class="bottom" rowspan="1" colspan="1" valign="middle" align="left"><p class="txt">备注</p><textarea isflow="1" type1="flow_textarea" id="AmAssets.Remark" name="AmAssets.Remark" class="mytext" style="width:63%; height:40px;"></textarea></td></tr><tr><th class="titleT" rowspan="1" colspan="2" valign="middle" align="left"><p class="titleO">入库信息</p></th></tr><tr class="bottomTr topTr"><td class="top bottom" rowspan="1" colspan="2" valign="middle" align="center"><table class="flowformsubtable" data-showindex="1" data-sortstring="" style="width:99%;margin:0 auto;" issubflowtable="1" id="subtable_AmAssetInOut_ID_ID_AmAssetsId" cellspacing="1" cellpadding="0"><thead><tr><th style="text-align:center;width:50px;">序号</th><th style="text-align:left;padding-right:3px;">设备管理员<input type="hidden" name="flowsubtable_id" value="AmAssetInOut_ID_ID_AmAssetsId"/><input type="hidden" name="flowsubtable_AmAssetInOut_ID_ID_AmAssetsId_secondtable" value="AmAssetInOut"/><input type="hidden" name="flowsubtable_AmAssetInOut_ID_ID_AmAssetsId_primarytablefiled" value="ID"/><input type="hidden" name="flowsubtable_AmAssetInOut_ID_ID_AmAssetsId_secondtableprimarykey" value="ID"/><input type="hidden" name="flowsubtable_AmAssetInOut_ID_ID_AmAssetsId_secondtablerelationfield" value="AmAssetsId"/></th><th style="text-align:left;padding-right:3px;">入库时间</th><th style="text-align:left;padding-right:3px;">存放地点</th><th style="text-align:left;padding-right:3px;">备注</th><th></th></tr></thead><tbody><tr type1="listtr"><td style="text-align:center;"><label name="showindex">1</label></td><td colname="AmAssetInOut_UseUId" iscount="0" style="text-align:left;padding-right:3px;"><input type="hidden" name="hidden_guid_AmAssetInOut_ID_ID_AmAssetsId" value="94820392aad1fffe3bbbd2ea1e841525"/><input type="hidden" name="flowsubid" value="AmAssetInOut_ID_ID_AmAssetsId"/><input type="text" class="mymember" name="AmAssetInOut_ID_ID_AmAssetsId_94820392aad1fffe3bbbd2ea1e841525_AmAssetInOut_UseUId" id="AmAssetInOut_ID_ID_AmAssetsId_94820392aad1fffe3bbbd2ea1e841525_AmAssetInOut_UseUId" issubflow="1" type1="subflow_org" value="" colname="AmAssetInOut_UseUId" dept="0" station="0" user="1" workgroup="0" unit="0" more="0"/></td><td colname="AmAssetInOut_UseDate" iscount="0" style="text-align:left;padding-right:3px;"><input type="text" class="mycalendar" name="AmAssetInOut_ID_ID_AmAssetsId_94820392aad1fffe3bbbd2ea1e841525_AmAssetInOut_UseDate" id="AmAssetInOut_ID_ID_AmAssetsId_94820392aad1fffe3bbbd2ea1e841525_AmAssetInOut_UseDate" issubflow="1" type1="subflow_datetime" value="@(YJ.Utility.DateTimeNew.ShortDate)" colname="AmAssetInOut_UseDate" istime="1" format="yyyy-MM-dd"/><script type="text/javascript"></script></td><td colname="AmAssetInOut_Address" iscount="0" style="text-align:left;padding-right:3px;"><textarea class="mytextarea" name="AmAssetInOut_ID_ID_AmAssetsId_94820392aad1fffe3bbbd2ea1e841525_AmAssetInOut_Address" id="AmAssetInOut_ID_ID_AmAssetsId_94820392aad1fffe3bbbd2ea1e841525_AmAssetInOut_Address" issubflow="1" type1="subflow_textarea" colname="AmAssetInOut_Address" style="width:120;height:80" maxlength="100"></textarea><script type="text/javascript"></script></td><td colname="AmAssetInOut_Remark" iscount="0" style="text-align:left;padding-right:3px;"><input type="text" class="mytext" issubflow="1" type1="subflow_text" name="AmAssetInOut_ID_ID_AmAssetsId_94820392aad1fffe3bbbd2ea1e841525_AmAssetInOut_Remark" id="AmAssetInOut_ID_ID_AmAssetsId_94820392aad1fffe3bbbd2ea1e841525_AmAssetInOut_Remark" colname="AmAssetInOut_Remark" value=""/></td><td><input type="button" class="mybutton" style="margin-right:4px;" value="增加" onclick="formrun.subtableNewRow(this);"/><input type="button" class="mybutton" value="删除" onclick="formrun.subtableDeleteRow(this);"/></td></tr></tbody></table></td></tr><tr><th class="titleT" rowspan="1" colspan="2" valign="middle" align="left"><p class="titleO">鉴定记录</p></th></tr><tr class="bottomTr topTr"><td class="top bottom" rowspan="1" colspan="2" valign="middle" align="center"><table class="flowformsubtable" data-showindex="0" data-sortstring="" style="width:99%;margin:0 auto;" issubflowtable="1" id="subtable_AmAssetAppraisal_ID_ID_AmAssetsId" cellspacing="1" cellpadding="0"><thead><tr><th style="text-align:left;padding-right:3px;">送检人员<input type="hidden" name="flowsubtable_id" value="AmAssetAppraisal_ID_ID_AmAssetsId"/><input type="hidden" name="flowsubtable_AmAssetAppraisal_ID_ID_AmAssetsId_secondtable" value="AmAssetAppraisal"/><input type="hidden" name="flowsubtable_AmAssetAppraisal_ID_ID_AmAssetsId_primarytablefiled" value="ID"/><input type="hidden" name="flowsubtable_AmAssetAppraisal_ID_ID_AmAssetsId_secondtableprimarykey" value="ID"/><input type="hidden" name="flowsubtable_AmAssetAppraisal_ID_ID_AmAssetsId_secondtablerelationfield" value="AmAssetsId"/></th><th style="text-align:left;padding-right:3px;">鉴定内容</th><th style="text-align:left;padding-right:3px;">鉴定日期</th><th style="text-align:left;padding-right:3px;">下次鉴定时间</th><th style="text-align:left;padding-right:3px;">维保、到期时间</th><th style="text-align:left;padding-right:3px;">鉴定证书</th><th></th></tr></thead><tbody><tr type1="listtr"><td colname="AmAssetAppraisal_CreateUId" iscount="0" style="text-align:left;padding-right:3px;"><input type="hidden" name="hidden_guid_AmAssetAppraisal_ID_ID_AmAssetsId" value="21bac76a8cf47c9411ef3ebf407ad7a0"/><input type="hidden" name="flowsubid" value="AmAssetAppraisal_ID_ID_AmAssetsId"/><input type="text" class="mymember" name="AmAssetAppraisal_ID_ID_AmAssetsId_21bac76a8cf47c9411ef3ebf407ad7a0_AmAssetAppraisal_CreateUId" id="AmAssetAppraisal_ID_ID_AmAssetsId_21bac76a8cf47c9411ef3ebf407ad7a0_AmAssetAppraisal_CreateUId" issubflow="1" type1="subflow_org" value="u_@YJ.Platform.Users.CurrentUserID.ToString()" colname="AmAssetAppraisal_CreateUId" dept="0" station="0" user="1" workgroup="0" unit="0" more="1"/></td><td colname="AmAssetAppraisal_AppraisalContent" iscount="0" style="text-align:left;padding-right:3px;"><textarea class="mytextarea" name="AmAssetAppraisal_ID_ID_AmAssetsId_21bac76a8cf47c9411ef3ebf407ad7a0_AmAssetAppraisal_AppraisalContent" id="AmAssetAppraisal_ID_ID_AmAssetsId_21bac76a8cf47c9411ef3ebf407ad7a0_AmAssetAppraisal_AppraisalContent" issubflow="1" type1="subflow_textarea" colname="AmAssetAppraisal_AppraisalContent" maxlength="500"></textarea><script type="text/javascript"></script></td><td colname="AmAssetAppraisal_AppraisalDate" iscount="0" style="text-align:left;padding-right:3px;"><input type="text" class="mycalendar" name="AmAssetAppraisal_ID_ID_AmAssetsId_21bac76a8cf47c9411ef3ebf407ad7a0_AmAssetAppraisal_AppraisalDate" id="AmAssetAppraisal_ID_ID_AmAssetsId_21bac76a8cf47c9411ef3ebf407ad7a0_AmAssetAppraisal_AppraisalDate" issubflow="1" type1="subflow_datetime" value="@(YJ.Utility.DateTimeNew.ShortDate)" colname="AmAssetAppraisal_AppraisalDate" istime="1" format="yyyy-MM-dd"/><script type="text/javascript"></script></td><td colname="AmAssetAppraisal_AppraisalDownDate" iscount="0" style="text-align:left;padding-right:3px;"><input type="text" class="mycalendar" name="AmAssetAppraisal_ID_ID_AmAssetsId_21bac76a8cf47c9411ef3ebf407ad7a0_AmAssetAppraisal_AppraisalDownDate" id="AmAssetAppraisal_ID_ID_AmAssetsId_21bac76a8cf47c9411ef3ebf407ad7a0_AmAssetAppraisal_AppraisalDownDate" issubflow="1" type1="subflow_datetime" value="" colname="AmAssetAppraisal_AppraisalDownDate" istime="1" format="yyyy-MM-dd"/><script type="text/javascript"></script></td><td colname="AmAssetAppraisal_AppraisaValidlDate" iscount="0" style="text-align:left;padding-right:3px;"><input type="text" class="mycalendar" name="AmAssetAppraisal_ID_ID_AmAssetsId_21bac76a8cf47c9411ef3ebf407ad7a0_AmAssetAppraisal_AppraisaValidlDate" id="AmAssetAppraisal_ID_ID_AmAssetsId_21bac76a8cf47c9411ef3ebf407ad7a0_AmAssetAppraisal_AppraisaValidlDate" issubflow="1" type1="subflow_datetime" value="" colname="AmAssetAppraisal_AppraisaValidlDate" istime="1" format="yyyy-MM-dd"/><script type="text/javascript"></script></td><td colname="AmAssetAppraisal_AppraisalFiles" iscount="0" style="text-align:left;padding-right:3px;"><input type="text" class="myfile" name="AmAssetAppraisal_ID_ID_AmAssetsId_21bac76a8cf47c9411ef3ebf407ad7a0_AmAssetAppraisal_AppraisalFiles" id="AmAssetAppraisal_ID_ID_AmAssetsId_21bac76a8cf47c9411ef3ebf407ad7a0_AmAssetAppraisal_AppraisalFiles" issubflow="1" type1="subflow_files" colname="AmAssetAppraisal_AppraisalFiles"/></td><td><input type="button" class="mybutton" style="margin-right:4px;" value="增加" onclick="formrun.subtableNewRow(this);"/><input type="button" class="mybutton" value="删除" onclick="formrun.subtableDeleteRow(this);"/></td></tr></tbody></table></td></tr></tbody></table>